package com.tanhua.model.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.util.Date;

public abstract class BasePojo implements Serializable {
    @TableField(fill = FieldFill.INSERT)
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;

    public BasePojo() {
    }

    public BasePojo(Date created, Date updated) {
        this.created = created;
        this.updated = updated;
    }

    /**
     * 获取
     * @return created
     */
    public Date getCreated() {
        return created;
    }

    /**
     * 设置
     * @param created
     */
    public void setCreated(Date created) {
        this.created = created;
    }

    /**
     * 获取
     * @return updated
     */
    public Date getUpdated() {
        return updated;
    }

    /**
     * 设置
     * @param updated
     */
    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String toString() {
        return "BasePojo{created = " + created + ", updated = " + updated + "}";
    }
}
